package cn.jbit.houserent.biz.impl;

import cn.jbit.houserent.bean.Type;
import cn.jbit.houserent.biz.TypeBiz;
import cn.jbit.houserent.dao.TypeDao;
import cn.jbit.houserent.dao.hibimpl.TypeDaoHibImpl;

public class TypeBizImpl implements TypeBiz {
	private TypeDao td = new TypeDaoHibImpl();
	/* (non-Javadoc)
	 * @see cn.jbit.houserent.biz.impl.TypeBiz#getTypeById(java.lang.Integer)
	 */
	public Type getTypeById(Integer id){
		
		try {
			Type type = td.findById(id);		
			return type;
		} catch (RuntimeException e) {
			e.printStackTrace();
			return null;
		}
		
	}
}
